package domain

type TmallSscSupplyplatformCapacityEditDayQuantity struct {
	/*
	   非必填，     */
	Available *bool `json:"available,omitempty" `

	/*
	   必须是YYYY-MM-DD格式     */
	Day *string `json:"day,omitempty" `

	/*
	   容量值为1     */
	Quantity *int64 `json:"quantity,omitempty" `

	/*
	   表示具体的某一天内的一个时间段。注意：如果配置了改值，则这里容量调整的值则是2022-07-01 08:00-09:00的容量，不配置则是调整07-01这一天的容量     */
	TimeRange *string `json:"time_range,omitempty" `
}

func (s *TmallSscSupplyplatformCapacityEditDayQuantity) SetAvailable(v bool) *TmallSscSupplyplatformCapacityEditDayQuantity {
	s.Available = &v
	return s
}
func (s *TmallSscSupplyplatformCapacityEditDayQuantity) SetDay(v string) *TmallSscSupplyplatformCapacityEditDayQuantity {
	s.Day = &v
	return s
}
func (s *TmallSscSupplyplatformCapacityEditDayQuantity) SetQuantity(v int64) *TmallSscSupplyplatformCapacityEditDayQuantity {
	s.Quantity = &v
	return s
}
func (s *TmallSscSupplyplatformCapacityEditDayQuantity) SetTimeRange(v string) *TmallSscSupplyplatformCapacityEditDayQuantity {
	s.TimeRange = &v
	return s
}
